package com.ruimei.entitys.enums;

import com.ruimei.util.CommUtil;

public enum CreateUserType
{
  TEACHER("老师"),  STUDENT("学生"),  PARENT("家长"),  MANAGER("管理者"),  ADMIN("管理员");
  
  private String name;
  
  public String getName()
  {
    return this.name;
  }
  
  public void setName(String name)
  {
    this.name = name;
  }
  
  public static CreateUserType values(String createUserType)
  {
    if (CommUtil.isEmpty(createUserType)) {
      return null;
    }
    switch (createUserType)
    {
    case "TEACHER": 
      return TEACHER;
    case "STUDENT": 
      return STUDENT;
    case "PARENT": 
      return PARENT;
    case "MANAGER": 
      return MANAGER;
    case "ADMIN": 
      return ADMIN;
    }
    return null;
  }
  
  public static CreateUserType value(Object createUserType)
  {
    return values(String.valueOf(createUserType));
  }
  
  private CreateUserType(String name)
  {
    this.name = name;
  }
  
  public static CreateUserType matching(String ch)
  {
    switch (ch)
    {
    case "老师": 
      return TEACHER;
    case "学生": 
      return STUDENT;
    case "家长": 
      return PARENT;
    case "管理者": 
      return MANAGER;
    case "管理员": 
      return ADMIN;
    }
    return null;
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\CreateUserType.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */